package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * The persistent class for the smart_area database table.
 * 
 */
@Entity
@Table(name="smart_area")
@NamedQuery(name="SmartArea.findAll", query="SELECT s FROM SmartArea s")
public class SmartArea implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scarea")
	private Integer smscarea;
	
	@Column(name="sm_coarea")
	private String smcoarea;
	
	@Column(name="sm_dsarea")
	private String smdsarea;
	
	@Column(name="sm_cousuario")
	private String smcousuario;
	
	@Column(name="sm_fhingreso")
	private Date smfhingreso;
	
	@Column(name="sm_fhmodificacion")
	private Date smfhmodificacion;
	
	@Column(name="sm_fhretiro")
	private Date smfhretiro;
	
	//bi-directional one-to-many association to SmartAsignatura
	@OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL,mappedBy ="smartArea" )
	private List<SmartAsignatura> asignaturaArea;
	
	
	public List<SmartAsignatura> getAsignaturaArea() {
		return asignaturaArea;
	}

	public void setAsignaturaArea(List<SmartAsignatura> asignaturaArea) {
		this.asignaturaArea = asignaturaArea;
	}

	public Integer getSmscarea() {
		return smscarea;
	}

	public void setSmscarea(Integer smscarea) {
		this.smscarea = smscarea;
	}

	public String getSmcoarea() {
		return smcoarea;
	}

	public void setSmcoarea(String smcoarea) {
		this.smcoarea = smcoarea;
	}

	public String getSmdsarea() {
		return smdsarea;
	}

	public void setSmdsarea(String smdsarea) {
		this.smdsarea = smdsarea;
	}

	public String getSmcousuario() {
		return smcousuario;
	}

	public void setSmcousuario(String smcousuario) {
		this.smcousuario = smcousuario;
	}

	public Date getSmfhingreso() {
		return smfhingreso;
	}

	public void setSmfhingreso(Date smfhingreso) {
		this.smfhingreso = smfhingreso;
	}

	public Date getSmfhmodificacion() {
		return smfhmodificacion;
	}

	public void setSmfhmodificacion(Date smfhmodificacion) {
		this.smfhmodificacion = smfhmodificacion;
	}

	public Date getSmfhretiro() {
		return smfhretiro;
	}

	public void setSmfhretiro(Date smfhretiro) {
		this.smfhretiro = smfhretiro;
	}
}
